﻿using System;
using System.Collections.Generic;
using System.Text;

using Obsidian.Edm;

namespace Oak.Model
{
    public class MsAdminMenuItemInfo : Obsidian.Edm.OModel
    {

        private LongField itemId;
        private LongField adminId;
        private LongField menuItemId;
        private DateTimeField created;
        private EntityField<MsMenuItemInfo> menuItem;

        public MsAdminMenuItemInfo()
        {
            base.InitModel("oak", "MsAdminMenuItems", new IModelField[]{
                itemId = new LongField(this, "ItemId", "itemId"),
                adminId = new LongField(this, "AdminId", "adminId"),
                menuItemId = new LongField(this, "MenuItemId", "menuItemId"),
                created = new DateTimeField(this, "Created", "created"),
                menuItem = new EntityField<MsMenuItemInfo>(this, "menuItem")
            });
        }

        public LongField ItemId { get { return itemId; } }
        public LongField AdminId { get { return adminId; } }
        public LongField MenuItemId { get { return menuItemId; } }
        public DateTimeField Created { get { return created; } }
        public EntityField<MsMenuItemInfo> MenuItem { get { return menuItem; } }

    }
}
